from tortoise import fields
from .base import BaseModel, TimestampMixin


class Checkin(BaseModel, TimestampMixin):
    user_id = fields.IntField(default=0, description="用户id")
    checkin_time = fields.DatetimeField(null=True, description="签到时间")

    class Meta:
        table = "checkin_list"
